Nine Slice
Cut image into 3x3 parts, and scale/repeat only the middle part.
Node Data | |
|---|---|
Display name | |
Nine Slice | |
Internal name | |
Node_9Slice | |
Inheritances | |
| Node_Processor | |
| Node_9Slice | |
Inputs | |
Surface | |
surface |
Surface In |
Slices | |
vec2 |
Dimension |
ipadding |
Splice |
enum |
Filling Modes |
Draw | |
Action | |
Outputs | |
surface |
Surface Out |
dynasurface |
Dynasurf |
Attributes | |
| Color Depth | |
| Interpolation | |
Create a 9-slice image from a source image. 9-slice images are used to create scalable images that can be stretched without distorting the corners. This is useful for creating scalable buttons, panels, and other UI elements.
Properties
| Surface | |
| Surface In | Input image to create 9-slice from. |
| Slices | |
| Dimension | Output image size. |
| Splice | 4 values that define the 9-slice regions. The values are in the order of left, top, right, bottom. |
| Filling Modes | Whether to stretch (scale) or repeat the 9-slice regions. |
Commit History
| 1.21.5.003 |
|
|---|
Related Links
- Base Code: /scripts/node_9slice/node_9slice.gml